body {
    margin: 0;
}

#m {
    overflow: hidden;
    display: flex;
    flex-direction: column;
    align-items: center;
    border-radius: var(--border-radius);
    justify-content: space-between;
    height: 100vh;
    transition: var(--transition);
}

#m:hover {
    box-shadow: inset 0 0 1px 1px #fff;
}

#main {
    display: flex;
    background-color: var(--bg);
    border-radius: var(--border-radius);
    width: 100%;
}

#record_b {
    display: flex;
    opacity: 0.4;
    pointer-events: none;
}

#start_stop_icon {
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background-color: #f00;
    position: absolute;
    left: 4px;
    top: 4px;
    transition: var(--transition);
}

.stop {
    width: 12px !important;
    height: 12px !important;
    left: 6px !important;
    top: 6px !important;
    border-radius: 4px !important;
}

#main button,
#main label,
#main select {
    width: 24px;
    height: 24px;
    position: relative;
    display: block;
    background-color: var(--bg);
    transition: var(--transition);
    border-radius: var(--border-radius);
}
#main > select:nth-last-of-type(1) {
    width: auto;
}

#main button:hover,
#main label:hover {
    background-color: var(--hover-color);
}
#main label > input {
    display: none;
}
#main label:has(input:checked) {
    background-color: var(--hover-color) !important;
}

#time {
    -webkit-app-region: drag;
    flex-grow: 1;
    line-height: 24px;
    text-align: center;
    font-family: var(--monospace);
}

#main button > .icon,
#main label > .icon {
    width: 24px;
    user-select: none;
}

#video {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    height: 100%;
    border-radius: var(--border-radius);
    overflow: hidden;
}
#v_p {
    border-radius: var(--border-radius);
    overflow: hidden;
}
video {
    border-radius: var(--border-radius);
    position: relative;
}

#seg {
    position: relative;
}
#seg > * {
    position: absolute;
    top: 0;
    width: 100%;
    height: 100%;
}
#seg > div > * {
    width: 100%;
    height: 100%;
}

#s {
    height: 0;
}
.s_show {
    padding: 8px;
    height: auto !important;
}

#jdt {
    -webkit-appearance: none;
    width: 100%;
    border-radius: 2px;
    background: var(--hover-color);
    margin: 0;
}

#jdt::-webkit-slider-thumb {
    -webkit-appearance: none;
    background-color: var(--color);
    border-radius: 2px;
    height: 16px;
    width: 4px;
}
input {
    vertical-align: middle;
    font-family: var(--main-font);
}
input[type="text"] {
    border: none;
    border-bottom: 1px solid var(--hover-color);
    transition: var(--transition);
    font-size: 1rem;
    width: 300px;
}
input[type="text"]:focus {
    border: none;
    border-bottom: var(--border);
}
input[type="text"]:disabled {
    opacity: 0.2;
}
input[type="number"] {
    width: 50px;
    border: none;
    border-bottom: 1px solid var(--hover-color);
    font-size: 1rem;
    transition: var(--transition);
}
input[type="number"]:focus {
    border: none;
    border-bottom: var(--border);
}

#t_nt,
#t_t {
    font-family: var(--monospace);
}

#t_start,
#t_end {
    width: 100px;
}

select {
    border: none;
    background-color: #0000;
    font-size: 1em;
}

.b {
    width: 24px !important;
    height: 18px !important;
    box-shadow: var(--shadow);
    background-color: #0000;
    font-size: 1rem;
    padding: 4px;
    vertical-align: middle;
}
.b > .icon {
    width: 18px;
    height: 18px;
    left: 3px;
}

.pro_p {
    width: 100%;
    height: 2rem;
    line-height: 2rem;
    border-radius: var(--border-radius);
    overflow: hidden;
    background: var(--hover-color);
    margin-top: 4px;
}
.pro {
    width: 0%;
    height: 100%;
    transition: var(--transition);
    border-radius: var(--border-radius);
    white-space: nowrap;
}
.pro_running {
    background-color: #9999ff;
}
.pro_ok {
    background-color: #99ff99;
}
.pro_error {
    background-color: #ff9999;
}

.hide_log {
    display: none;
}

textarea {
    margin-top: 4px;
    padding: 8px;
    width: 100%;
    height: 2rem;
    border-radius: var(--border-radius);
    border: none;
    font-size: 1rem;
    line-height: 1.5rem;
    resize: vertical;
    box-shadow: var(--shadow);
}
